'use strict';
const uniIDs = require("uni-id")
exports.main = async (event, context) => {
	console.log(event.code)
	//event为客户端上传的参数 loginByWeixin
	let res = await uniIDs.loginByWeixin({
		  code: event.code
	});
	//返回数据给客户端
	return res
};